#include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	while (n--)
	{
		int temp = 3;
		int k;
		int sum = 0;
		cin >> k;
		int z = 0;
		for (int i = 1; i <= k; i++)
		{
			temp = (temp - 1) * 2;
		}
		cout << temp << endl;
	}
	return 0;
}